//
//  SISSBuyHouseQualificationShowViewController.m
//  SISSAPP
//
//  Created by 袁应荣 on 2019/7/5.
//  Copyright © 2019 优房网. All rights reserved.
//

#import "SISSBuyHouseQualificationShowViewController.h"
#import "SISSUploadBuyHouseQualificationViewController.h"
#import "SISSNetworkingManager+PassengerProgress.h"
#import "SISSPassengerProgressModel.h"
#import "SISSBuyHouseQualificationModel.h"

@interface SISSBuyHouseQualificationShowViewController ()

///
@property (strong, nonatomic) SISSBuyHouseQualificationModel *buyHouseQualificationModel;

@end

@implementation SISSBuyHouseQualificationShowViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"购房资格审核信息表";
    self.uploadImageShowView.titleStr = @"购房资格审核信息表电子档图片";
    
    [self requestBuyHouseQualificationData];
}

- (void)requestBuyHouseQualificationData {
    WeakSelf
    [kNetworkManager requestBuyHouseQualificationInfoWithAdbpId:self.passengerProgressModel.adbpId success:^(SISSBuyHouseQualificationModel *buyHouseQualificationModel) {
        
        weakSelf.buyHouseQualificationModel = buyHouseQualificationModel;
        weakSelf.uploadImageShowView.imageUrlArr = buyHouseQualificationModel.image.mutableCopy;
        weakSelf.remarkView.rightStr = buyHouseQualificationModel.otherdesc;
        weakSelf.createDateView.rightStr = buyHouseQualificationModel.insertTime;
        
    } failed:^(NSError *error) {
        NSLog(@"%@",error);
    }];
}

- (void)modifyButtonClickAction {
    
    SISSUploadBuyHouseQualificationViewController *vc = [[SISSUploadBuyHouseQualificationViewController alloc] init];
    vc.buyHouseQualificationModel = self.buyHouseQualificationModel;
    vc.passengerProgressModel = self.passengerProgressModel;
    vc.passengerProgressRecordInfoModel = self.passengerProgressRecordInfoModel;
    [self.navigationController pushViewController:vc animated:YES];
}

@end
